package com.personal.gateway.dao;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author xuanqisong
 * @date 2021/5/28 11:30
 * @document
 */
public class SavePointDao {

    private boolean isOk = false;
    private String jobName;
    private Date fileTime;
    private String fileTimeString;
    private String filePath;

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public Date getFileTime() {
        return fileTime;
    }

    public void setFileTime(Date fileTime) {
        this.fileTime = fileTime;
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
        this.setFileTimeString(sdf.format(this.fileTime));
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileTimeString() {
        return fileTimeString;
    }

    public void setFileTimeString(String fileTimeString) {
        this.fileTimeString = fileTimeString;
    }

    public boolean isOk() {
        return isOk;
    }

    public void setOk(boolean ok) {
        isOk = ok;
    }

    public long getFileTimeStamp() {
        return this.fileTime.getTime();
    }
}
